@extends('layouts.master')
@section('css')
{{ HTML::style('css/commesse.css') }}
@stop

@section('javascript')
{{ HTML::script('js/commesse-crea.js' ) }}
@stop

@section('content')
{{ Form::open(array('url'=>'commesse/crea', 'role'=>'form')) }}
<fieldset class="form-inline" id="fieldset-commessa">
	<legend>Commessa</legend>
	<div class="form-group">
		<label for="numero-commessa">Numero</label>
    	<input type="text" class="form-control" id="numero-commessa" name="numero-commessa" placeholder="130000">
</div>
<div class="form-group">
	<label for="articolo-commessa">Articolo</label>
    <input type="text" class="form-control" id="articolo-commessa" name="articolo-commessa" placeholder="000000">
</div>
<div class="form-group">
    <label for="inizio-commessa">Data di inizio</label>
    <input type="text" class="form-control" id="inizio-commessa" name="inizio-commessa" placeholder="01/01/2013">
</div>
</fieldset>

<fieldset class="form-inline" id="fieldset-fase">
	<legend>Fase</legend>
	<div class="form-group">
		<label for="numero-fase">Fase</label>
		<input type="text" class="form-control" id="numero-fase" placeholder="10"/>
	</div>
	<div class="form-group">
		<label for="macchina-fase">Macchina</label>
		<input type="text" class="form-control" id="macchina-fase" placeholder="B20"/>
	</div>
	<div class="form-group">
	<a id="aggiungi-fase"  class="add text-success">
	<span class="glyphicon glyphicon-plus-sign"></span></a>
	<!-- <button id="aggiungi-fase" type="submit" class="btn btn-success btn-sm">
	<span class="glyphicon glyphicon-plus-sign"></span> aggiungi fase</button>  -->
</div>


</fieldset>

<fieldset class="form-inline" id="fieldset-sdm">
	<legend>Strumenti di misura</legend>
	<div class="form-group">
		<label for="codice-sdm">Codice / Matricola</label>
		<input type="text" class="form-control" id="codice-sdm" placeholder="XY012"/>
	</div>
	<div class="form-group">
		<label for="fase-sdm">Fase</label>
		<select id="fase-sdm" class="form-control" placeholder="fase">
		</select>
	</div>
	<div class="form-group">
		<a id="aggiungi-sdm"  class="add text-success">
	<span class="glyphicon glyphicon-plus-sign"></span></a>
	</div>
</fieldset>


<fieldset id="fieldset-lista-fasi">
	<legend>Elenco fasi e strumenti di misura</legend>
	<ul id="fasi"></ul>
</fieldset> 

<button id="salva-commessa" type="submit" class="btn btn-success btn-lg">
	<span class="glyphicon glyphicon-floppy-disk"></span> Salva commessa
</button>
</form>
@stop
